Sounds like a loose cable from laptop to lid.
If you have a monitor, try plugging it in. If problem persists it would suggest the graphics chip is failing but if it is OK on the external monitor, it confirms it is a loose cable.
What to do if you're affected by the Intel Foreshadow flaw
This new tool dramatically improves workflow between designers and developers
iMac at 20: 10 iMac facts and history in pictures
Les meilleurs VPN gratuits (2018)