Try these steps to troubleshoot the issue:
- Check the connection cables for any signs of physical damage from the Smart TV to the source device.
 - Make sure all the cables are connected correctly and securely.
 - Try the device on another HDMI port if switching randomly only happens on one port.
 - Check the television settings to see if there is a switch mode setting that is causing the inputs to switch randomly.
 - Make sure the TV’s firmware is up to date.
 - Unplug the TV from power, then plug it back in after 30 seconds.
 
