It’s a bit like climate change. That was seen way back in the 70s but ignored.
Back in the 70s the worry was the destruction of the ozone layer and a new ice age all brought on by CFCs. In the eighties it moved on to acid rain. “Global warming” had the wrong PR people - had it been branded “climate megadeath” it might have got earlier traction.
Even in the 70s it was called the green house effect. The obvious allusion to warming was known and stated then.
Yes, the effect of atmospheric CO2 was well-understood over a hundred years ago. There was something of a panic in the early 70s about solar dimming bringing about an ice age. It's a staple of 70s science fiction, and was pointed at for some time afterwards to discredit climate science.
CFCs destroying the ozone layer is unrelated. Indeed, it's one of the few significant environmental success stories. Mostly because it could be achieved by regulation of a few key industries, and because alternatives to CFCs make very little difference in our daily lives
[1]. Unless your daily life involves fire fighting or designing refrigeration systems, I suppose.
I don't know what happened to acid rain. Well, we stopped burning as much coal, and reduced the amount of sulphur dioxide in vehicle exhausts for the benefit of people's lungs, which presumably reduced it to levels that are only of concern to ecologists and those with an interest in historic buildings.
[1] I now have to use a spacer so the CFC-free propellant of my preventer inhaler doesn't make me cough.