From the Mac, AirPlay or Screen Mirroring should work the same for any model Apple TV.
Both devices need to be on the same home network.
Use AirPlay to stream video or mirror the screen of your iPhone, iPad, or iPod touch - Apple Support
If screen mirroring or streaming isn't working on your AirPlay-compatible device - Apple Support
Not everything can be streamed through AirPlay. Some content or apps may have restrictions (e.g. Mac DVD Player). What are you trying to AirPlay?
Can you AirPlay something as basic as the Mac Desktop? Then AirPlay itself is working.
Can you AirPlay e.g. YouTube web content through the AirPlay icon in the video controller? Then AirPlay itself is working.
What is your model Mac, and its version macOS? The location of the controls for screen mirroring have changed a bit with Big Sur and Monterey. The controls are now integrated into Mac Control Center.
Stream audio and video from your Mac with AirPlay - Apple Support
Use AirPlay to stream what’s on your Mac to an HDTV - Apple Support