So you are basically saying it is the temperature...
WiFi use and loading CPU increase the internal temperature.
Could it be a bad connector/connection between the display and "motherboard"?
Have you tried to tap/shake the device to see if that makes a difference?