How to detect mobile device (android or iOS) with AMP

312 Views Asked by At

I am trying to display different content based on the users device. One button for android devices another button for iOS devices. I found a bit of an answer using req.headers["user-agent"] but I do not know how to implement that solution.

0

There are 0 best solutions below