Hello jcw289,
You can double check the continuity requirements with the article here: System requirements for Continuity on Mac, iPhone, iPad, and Apple Watch
However, as it lists an iMac introduced in 2019 or later double check your preferences with the steps below found here: Set up your Mac to be an AirPlay receiver
"Note: If your Mac is enrolled in a mobile device management (MDM) system, AirPlay Receiver may be unavailable.
- On your Mac, choose Apple menu
> System Settings, click General
in the sidebar, then click AirDrop & Handoff
on the right. (You may need to scroll down.) - Turn on Airplay receiver.
- Click the pop-up menu next to “Allow Airplay for” and choose whose devices can use AirPlay to stream content to this Mac:
- Current User: Only devices signed in to your Apple ID can see and use AirPlay to stream content to this Mac.
- Anyone on the Same Network: Any nearby Mac, iPhone, or iPad on the same network can see and use AirPlay to stream content to this Mac.
- Everyone: Any Mac, iPhone, or iPad can see and use AirPlay to stream content to this Mac.
4.Turn on Require password, enter the password in the text field, then click OK."
If the issue continues, you can test in a new user account. Add a user or group on Mac - Apple Support
Reach out to Apple Support directly if the issue remains.
Contact - Official Apple Support
Contact Apple for support and service - Apple Support
Best.