Please check whether your phone supports wireless Android Auto and whether you have turned on the wireless Android Auto option in the settings.
Please clear Google service cache, Android Auto cache, and then restart your phone.
Clear Google Service Cache Video Tutorial:
https://www.youtube.com/shorts/AOKclbaR8tg