How can I implement browser detection in .liquid for app download buttons?

My Shopify web has a button link to android play store (to download an app web-view)

How can i declare the browser detection in .liquid?

I need help to create this condition

  • if it is chrome, safari, opera… (show a button),

  • if not (do not show)

I need to hide this link once the user install the app and run the web view installed on the mobile

1 Like