Everyone will become poorer. Not to mention after the severe "population shrink".
Of course, countries don't want to actually do away with fossil fuels. As leadership also depends on them. What they want to do is justify continued antidemocratic power in the name of nebulous concepts that, ideally, are articulated as problems that aren't actually solvable.