What kind of PC do you have?
Can you open it up and take a peek inside?
That kind of glitch on boot is not a sign of good health or an easily fixed problem, but an actual hardware issue.
Is it an old Dell or HP or something? Can you check for bulging capacitors?