The screenshot test
Take a screenshot and open it on another device, for example by sending it to yourself. This test reliably separates software from hardware.
If the line also shows up on the screenshot, it is created before the image reaches the display. Then it's the system or the graphics, and an update or a restart can help.
If the line is missing from the screenshot, the image itself is fine and the display is showing it wrongly. That's a hardware fault in the display or its connector. Software won't help any more.
