How to output AppleTV app video on MacBook Air to HDMI adapter to TV without mirroring
You need to open System Preferences, click Displays, select the Arrangement tab and then ensure "Mirror Displays" is unchecked.
In order to be able to close the laptop while keeping the external display output working, you will need to ensure the MacBook Air has the charger plugged in.