What actually happens? I had a problem when I had sand in the lightening port on the phone, this caused CarPlay to constantly disconnect. This was quite obvious though with the whole screen vanishing each time.
I assume you’ve tried s different cable anyway? It could also be the cable to the socket in the car, or the socket itself, or indeed your phone. Can you try a different iPhone?