Macbook Pro retina has lines across the screen
My Macbook Pro 13 inch retina, early 2015 has constant flickering lines preventing me from using the machine. I have attached a picture below. I ran apple diagnostics test and it has shown that there are no issues found. I have connected the laptop to a monitor and there are no issues with display on monitor. What could be the possible cause?
Macbook (2015 or later)