After upgrading to Mx 5.21.0 our application seems unable to detect the currentDeviceType. Which means that the mobile pages are inaccessible. What is the mechanism behind the device type detection (user agent and so on?) and how can I check and fix this?