At the laptop screen is opened and closed this cable that runs through one of the hinges of the laptop screen can become damaged due to the folding and unfolding action of opening and closing the lid.
In these circumstances opening and closing the lid will cause the problem to shift around. You may find lines or bars come and go, or move around. Coloured patterns or hues on the display including shadowing may also move around and come and go.
There may be times when you find a position for the lid of the laptop whereby the screen works normally.
If moving the lid backwards and forwards changes the problem in any way, the chances are you have a damaged screen cable.