Looks like the screen loses power after a few seconds.
Probably the power supply (Power-Analog-Video board)
If you try to repair that, good luck with the 20-year old plastics on that iMac. The last G3 iMac that I tried to repair about 5 years ago just broke into pieces - there's some slots and tabs for the enclosure that used to be flexible. Not so much now.