I believe that the first generation Mazda CX-5 does not support Car Play or Android Auto with the native infotainment system. I am afraid that your only choice is to install an aftermarket head unit or a retrofit. Here's a YouTube video showcasing a possible solution for your problem...