The whole point of CarPlay is that it’s on the built in screen. Many states have laws now that prohibit operating any sort of handheld device while driving (and yes, a phone or even GPS unit in a mount still counts as handheld)
Maybe not the authoritative source but interacting with a phone while driving is indeed illegal in all of Europe.
You presumably meant EU, a part but not all of Europe, but that too is wrong. For example, the law in the Czech Republic, a member state of EU, states that it forbidden to hold a phone (or other handheld device), in hand or otherwise (e.g. between shoulder and ear) while driving (§ 125c / 1f) 1. z. č. 361/2000 Sb.).
Handheld devices probably are illegal to use while driving in all of EU while being (hand)held, but absolutely not when mounted and used in the same manner as car’s builtin display. It may be the case in some country, but is not true generally.