I would say it is more of a screen glitch than anything else, especially as it is on the edge of LCD.
The only way to test is to fit another screen temporarily and see if the glitch persists.
I personally wouldn’t worry, remotely accessing an iPhone is near on impossible without the user knowing.