One button with different destinations for Android and IOS

I have a website that has a button that takes the user to the app store. Is there a way to have that button redirect android users to Google Play and IOS users to the App Store? Im sure there has got to be a way but can’t find a resource on this.

Thanks,
Cam


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

You could attempt device detection in a custom script then only display the matching button.

See WURFL.io