I had an old 2011 iMac that had been sitting for awhile that would turn on and just go to a white screen.
I was able to reinstall the OS. and everything started working fine. I also upgraded the memory.
It worked fine for a bit and then randomly started having weird issues.
Now after it powered in within a minute the following started.
First the screen flashed, showed blue and black vertical lines, and then rebooted.
After reboot the screen was not right, weird lines, some stuff fuzzy, and not everything in correct alignment. I rebooted.
Then again with the gray and blue lines (got a picture of it this time and it is attached).
Now it is back to powering on, showing apple logo, and then going to white screen.
I tried resetting NVRAM and PRAM.
Any thoughts on what it could be or how to diagnose further?