When that happens, people will follow their self interest and switch to renewable energy.
The first part has happened! Renewable energy is now cheaper in many applications than fossil fuels.
https://www.theclimatebrink.com/p/is-renewable-energy-cheaper-than