My team is looking for a possible solution that will display one URL on android/desktop and a different URL on iOS mobile devices.

We're running into an issue with the way some devices open certain types of links (deep links, universal links), with some devices jumping directly to the mobile app (desirable) and others opening in a browser (not desirable). iOS devices seem to be the problem child here, so I've been asked if it's possible to present one link to iOS devices and a completely different link to all other devices.

All I can think to do is target with media queries using pixel ratio/resolution and/or min/max device width/height.

I think it's a little hacky and the problem should probably be resolved by our app engineers, but I'm open to input.