Before tackling the flickering issue, you should address the underlying problem first. Here are some tips that you should try:
Check the power cable and the wall outlet to make sure your TV is connected to a power source.
Ensure your TV is plugged into the correct HDMI port.
Check if the TV is set to the correct input source.
Perform a reboot of the TV.
Make sure all cables connected to the TV are securely fastened.
Try a different HDMI cable.