Touch screen behaving abnormally on my iPhone 5, how can I fix it?

Touch screen behaving abnromally in Iphone 5.

The touch screen behaving abnormally. First it was from the left vertical line but now it affected the whole screen. It sometimes behave perfectly but many times opens up other apps.
Re: Touch screen behaving abnromally in Iphone 5.

Welcome to iMore! Try booting into recovery and restoring in iTunes.
https://support.apple.com/en-us/HT201263
If your problem persists it's most likely hardware related. Bring your iPhone into an Apple Store or contact Apple Support.

Original thread: https://forums.imore.com/threads/touch-screen-behaving-abnormally-on-my-iphone-5-how-can-i-fix-it.355905/