Hi Annasswadas
welcome to the Apple (user-to-user) Community!
Re: Apple Vision Pro: Unable to connect to Mac
You can use Mac Virtual Display with any Mac that has macOS 14 Sonoma or later, so you should be good to go.
You might want to check you are signed in with same Apple ID on your Apple Vision Pro and on your Mac.
Apple support supplies tips and troubleshooting in the articles below:
How to: See your Mac screen on Apple Vision Pro - Apple Support
and / or
See what to do: If you can't connect to your Mac in Apple Vision Pro - Apple Support
_____________________
More support if needed:
Apple Vision Pro Support webpage: (info. / support / contact options (online chat / phone email) etc.
(ie: There is a "Get support - start now) link at the bottom of their webpage (link below):
Apple Vision Pro - Official Apple Support
All the best :-)