One undocumented cause of hot running in iMacs made after 2011 is the tilt position of the screen. If it is tilted fully down (example, computer placed above your eye line) the top portion of the stand moves too close to the poorly-place exhaust vent:

Like a party trick, I can produce overheat heating at will by tilting the display forward. Oh, the sacrifices made at the Altar of Minimalist Design!
To support Tesserax's excellent advice, I offer this image of an overheating iMac that was posted here a couple of years back:

The poster removed the debris from under the air intakes and all was well. One needs to preserve that spacing between the intakes and the desk surface