Did you know, it takes the same amount of electricity to produce a single gallon of gas from start to being in your gas tank as it does to power a modern EV for about 45 miles? For a gas car, you use electricity to pump the oil out of the ground, gas to move the oil from the drill site to the refinery (electricity had to be used to produce that gasoline as well), electricity to refine it into gasoline, gas (again requires electricity) to transport it form the refinery to the gas station, electricity to run the station, electricity to pump the gas into your vehicle. This doesn't even factor in the fact that you have to have periodic oil changes in a gasoline vehicle and that there are fossil fuels being burned. These are the dirty little secrets that the oil companies are trying so very hard to hide from you.
Now, as I said before, if the electricity is generated from Solar, it is about as clean as you can get and the vast majority of people who drive EVs charge from solar whenever humanly possible, not from the grid.
Now, are EVs perfect? No, as I said there is room for improvement, with new battery tech, etc., but there are and will remain the cleanest form of powered transportation there is for the foreseeable future.