90% of the worlds energy production comes from unrenewable sources. less than 10% of it ends at the end cosumer, the rest is used for production and transport, which allows the global market economy to even exist.
if we used ALL potentially appropriate areas on the planet for sun+wind electricity to the max, we would barely produce 65% of the current energy expenditure, while this scenario would also require overhauling the entire global electirical network because immense remoteness of some areas. maintanace costs for this kind of energy source are 4 to 40 times higher, while the cost of producing and putting them in place is around 3 times higher. this makes these solutions de-fuckto economically unviable for most states on the planet.
then you have all sorts of trivia, like the fact coal is the primary ingredient for two thirds of the world's steel production.
besides that, high enviromental standard are a direct blow to competitiveness - if you have two companies and the one in china is freely allowed to pollute, while ours has to watch the enviroment, the second company will have substantially lower profits and thus be uncompetitive on the global market.
so there is a fix, just not within capitalism.