Thank you for posting on the HP Support Community.
Don't worry as I'll be glad to help, however, to provide an accurate resolution, I need a few more details:
When was the last time it worked without these issues?
Have you updated Graphics and Chipset drivers?
Have you tried with different monitor or tv?
Let’s try these steps to resolve the problem:
I recommend you attempt to access the BIOS screen by tapping on F10 while the computer is restarting,
If the issue persists in the BIOS screen which is outside windows, it would confirm a hardware failure.
Hope this helps! Keep me posted for further assistance.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
ECHO_LAKE I am an HP Employee
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".