DeX is only supposed to kick off when you connect your phone to a display, either via a cable or through a wireless display feature. As far as I'm aware, outside of third party modifications, you can only do this in car entertainment systems that are not in the front row.
You also might be confusing DeX for Android Auto.