The screen cables might be loose and are getting dislodged when you tap the screen or put the phone down.
open