When I was in high-school in England in the 1930s, we learned that continents had been drifting according to the evidence collected by Wegener. It was a great mystery to understand how this happened, but not much doubt that it happened. So it came as a surprise to me later to learn that there had been a consensus against Wegener. If there was a consensus, it was among a small group of experts rather than among the broader public. I think that the situation today with global warming is similar. Among my friends, I do not find much of a consensus. Most of us are sceptical and do not pretend to be experts. My impression is that the experts are deluded because they have been studying the details of climate models for 30 years and they come to believe the models are real. After 30 years they lose the ability to think outside the models. And it is normal for experts in a narrow area to think alike and develop a settled dogma. The dogma is sometimes right and sometimes wrong. In astronomy this happens all the time, and it is great fun to see new observations that prove the old dogmas wrong.
Unfortunately things are different in climate science because the arguments have become heavily politicised. To say that the dogmas are wrong has become politically incorrect. As a result, the media generally exaggerate the degree of consensus and also exaggerate the importance of the questions.