Webflow change content based on browser

Hi everyone!
I am creating a website for a client to direct users to install an extension on their browser, works on Firefox/Chrome/Safari/Opera.

What I want to do is to have one button that changes depending on the browser they are using.
So on Chrome it will have a chrome icon and direct you to the chrome store
Safari will change to a safari icon and download that.

Is there anyway I can do this in Webflow?

This is literally an exact question of javascript - How to detect Safari, Chrome, IE, Firefox and Opera browsers? - Stack Overflow, who also asked for browser detection for browser extensions.