This article explains how to AirPlay from a Mac to a TV. Instructions apply to Macs running macOS Mojave (10.14) and later. Once you've enabled AirPlay on your Mac, you can cast from your Mac to your Apple TV or compatible smart TV with just a few clicks.
How to Mirror (Connect) Your Macbook Screen to Your TV Wirelessly and Wired – Complete Guide
On a Mac running macOS Big Sur (11.0) and later, open AirPlay in Control Center. You'll need an Apple TV device or an AirPlay-compatible smart TV on the same network as your Mac.
Select the Control Panel icon in the Mac menu bar.
Select Screen Mirroring in the Control Panel.