With Apple TV or an AirPlay 2-compatible smart TV, you can mirror the entire display of your Mac to your TV or use your TV as a separate display.
1.Connect your Mac to the same Wi-Fi network as your Apple TV or AirPlay 2-compatible smart TV.
2.On your Mac, click in the menu bar at the top of your screen. If you don’t see , go to Apple menu > System Preferences > Displays, then select “Show mirroring options in the menu bar when available.”
3.Choose your Apple TV or AirPlay 2-compatible smart TV.
4.If an AirPlay passcode appears on your TV screen, enter the passcode on your Mac.
Change settings or stop mirroring
To change the size of your desktop mirrored on your TV, click in the menu bar. Then select Mirror Built-in Display to match the size of your desktop or Mirror Apple TV to match the size of your TV.
Airplay also lets you use your TV as a separate display for your Mac. Just click in the menu bar, then select Use As Separate Display.
To stop mirroring or using your TV as a separate display, click in the menu bar, then choose Turn Airplay Off. Or press the Menu button on your Apple TV Remote.
Learn more about screen mirroring or extending the display of your Mac.