Could be either the monitor or the video controller. It does sound like a heat related fault with some component just at the edge of tolerance.......Only guessing, but I don't think it is motherboard etc, unless the video card is an integral part.
iPad Air (2019) review
Moleskine launches limited edition Lord of the Rings notebook collection
iMac 21.5in (2019) review
Comment faire pivoter une vidéo ?