Lib Dems looking to ban non-EV vehicles by 2040

The UK Liberal Democrat party has announced plans to ban non-EVs from UK roads by 2040. Is this really possible or just a way to keep in with eco-friendly voters?