Want the answers to questions about the iPhone? You'll find questions and answers here.
What should I do if my iPhone 5c has colored lines on the right half of the touch screen display, and the touch screen is also unresponsive on the right side?
This just happened spontaneously. I cannot unlock my phone because one of the numbers in my passcode is on the unresponsive portion of the screen. The lines resemble those when a monitor isn't fully connected to a computer.
Thanks for visiting Apple Support Communities.
If you are seeing colored lines on your iPhone display, I recommend first resetting it:
Resetting your device
Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
You can find the full article with these steps here:
If the lines are still there after you reset the iPhone, I recommend that you back it up and restore it using iTunes: