Web app running 6348.

How can I reliably detect if the user is on a mobile device?

Currently, on my login component, I'm using the responsive layout to detect this (screen shot below). That in turn sets an argument that is then passed to my processing page (the page is pure xbasic that setups up session vars and determines which page the user should land on). This has proven to be unreliable. Strangely, when I test this process on my localhost (development machine) it works. Yes, both dev. machine and the production server are on the same build. Production server is on an AWS E2 with load balancer. I'm wondering if the load balancer is some how interfering with this.

Ashampoo_Snap_Wednesday, January 8, 2020_18h25m05s_008_.png