Hello.
I have several Notebooks and Desktops connected to HDMI devices (monitors, TVs, Beamers, …) over the years and never ran into such an issue.
To the question of Abhishek: Is it a notebook?
Have you connected it successfully to any HDMI decvice (e.g. monitor) beforehand?
If it’s a notebook, does it have some special keys to toggle between displays (somedays it’s a key called “Fn” or alike"?