I tried for months to get a stable reliable Carplay connection via the cable for my MG5 Trophy FL.
I tried to change connection order (car/phone) / restart phone/car/infotainment, switch off wifi on the phone and s.o. I suspected mobile network coverage as the car E-SIM might switch the roaming network and interrupt the authorisation.
All attempts worked only temporarily and were prone to disconnect randomly during driving. Also some of the apps like Electroverse were impossible to use (unresponsive) via Carplay even when other apps were working.
I used all sorts of brand new certified or Apple genuine cables. It was disconnecting randomly at the lightest touch of the phone or cable.
All these cables were 90cm(3ft) or longer and high quality. I knew cables were mechanically sound and electrically compliant.
For the last few weeks I replaced the cable with a short one (50cm). It works 100% as it is supposed to work. I connect and disconnect every day at least 6-8 times. Every time is working flawlessly and instantly. This one is a Baseus braided cable. I got from them various even longer USB A to Iphone / USB-C Iphone cables and they all proved compliant, reliable and resilient.
I had it from a pack bought few years back from Ebay and the short one I never used it until now.
My explanation/conclusion is that the USB port for Carplay/AA is incorrectly designed for longer cables. It either doesn't deliver enough power or it's interfered from the car electronics.
For those that consider is the phone issue I suggest to try it in a different car (non-MG). As I rented several different cars (Nissan/VW/Mazda) with Carplay support and it worked perfectly I am confident that the fault is entirely with MG implementation.
I do not have a wireless carplay dongle but I would think with a short cable between the car USB-A port and dongle the Carplay experience will also be consistenly reliable.