There's an interesting gap when discussing carplay/aa. Cars from the 90s up until about 2013 can be easily fitted with a $500 head unit upgrade, and support carplay quite well. With the right tools, it can be done in about two hours right in your driveway. Cars from 2018 and up pretty universally support carplay, and it's generally quite well integrated into the car's infotainment system. But, between 2013 and 2017,…
Mazda sells a retrofit kit for their 2014 (Mazda 3) / 2016 (other models) and newer cars that didn't come with native CP/AA. It's about $200 and DIY if you're the least bit handy:
https://mazdaparts.org/mazda-3-smartphone-mirroring-kit.html