Hello @Slam
Thank you for your message.
TeamViewer always captures the remote screen.
If you plug out the HDMI cable, you cut the connection to the screen. This can lead to display bug and freezes.
There is, unfortunately, no workaround to avoid this. If you want a clean screen sharing and transmission, the cable needs to stay plugged in.
Best,
Jean