The problem is that the iMac displays the Apple logo then flashes black before getting stuck on white screen.
What I've tried so far:
Safe Mode (⇧) - not working, can´t get into Safe Mode, loading bar appears below apple logo but flashes back to white screen.
Startup Manager (⌥) - I tried to boot from alternative hard drive, I tried recovery HD and a USB stick with High Sierra fresh install - not working, it loads partially and flashes back to white screen.
NVRAM/PRAM Reset (⌘⌥PR) – I waited for two chimes but no change.
Recovery Mode (⌘R) – It loads for about 6/9 min with a world icon spinning but it doesn't work either flashes back to white screen.
Apple Hardware Test (D) - No faults detected.
I have 12GB RAM, I tried removing extra RAM and stay with standard 4GB. no change.
Replaced Hard Drive, I moved from SATA to brand new SSD, flashes back to white screen
Can anyone help me, could it be a hardware fault such as the GPU?