You can straight up synthesize an oil analog from biological sources, and even if you couldn't the oil necessary for non-energy purposes is far far less than that used just to burn.
Solar is what is going to replace fossil fuels mostly, it's already cheaper than coal.
Like it or not, most of the motivation for change will be economic. With the price of energy in the current times of war and inflation, solar is looking quite good.
Industrial chemistry always has alternatives. Ammonia based fertilizers can always be produced with air and water instead of air and natural gas, it's just somewhat more expensive.