Use AirPlay on your Mac
Show whateverโs on your iMac on the big screen using AirPlay screen mirroring. To mirror the iMac screen on your TV screen or to use the HDTV as a second display, connect your HDTV to Apple TV and make sure the Apple TV is on the same Wi-Fi network as your iMac. You can also play web videos directly on your HDTV without showing whatโs on your desktopโhandy when you want to play a movie but keep your work private.

Mirror your desktop using Screen Mirroring. Click the Control Center icon in the menu bar, click Screen Mirroring
, then choose your Apple TV. When AirPlay is active, the icon turns blue.
Note: If your Mac supports AirPlay screen mirroring, you see an AirPlay status icon in the menu bar of your Mac when an Apple TV is on the same network as your Mac. See Use AirPlay to stream video or mirror your device's screen.
In some cases, you can use an AirPlay display even if youโre not on the same Wi-Fi network as Apple TV (called peer-to-peer AirPlay). To use peer-to-peer AirPlay, you need an Apple TV (3rd generation rev A, model A1469 or later) with tvOS 7.0 or later.
Play web videos without showing your desktop. When you find a web video with an AirPlay icon , click the icon, then select your Apple TV.
Tip: If the image doesnโt fit your HDTV screen when you mirror the screen, adjust the desktop size for the best picture. Click the AirPlay icon in the video, then choose an option under โMatch Desktop Size To.โ
Apple TV is sold separately at apple.com, your local Apple Store, or other resellers.
Learn more. To learn more about AirPlay, see Use AirPlay to stream whatโs on your Mac to an HDTV in the macOS User Guide. To learn more about using a second display with your iMac, see Connect an external display to your iMac. To troubleshoot, see the Apple Support article If AirPlay or screen mirroring isnโt working on your device.