The only thing that has a chance of working is thinking about it a bit differently - governments should heavily subsidize building solar energy plants. On the scale of "much more than we need". Then they should also heavily subsidize carbon capture and possibly also tech to turn it into liquid fuels again.
Getting petrol cars off the road is just not going to happen on the time scale it's needed. If the 10 years until the ban would be spent building enough solar, carbon capture and fuel generation, we'd be in a much better state. We'd literally have a knob that controls the amount of CO2 in the atmosphere.