Display a specific hyperlink based on client browser

Is it possible to display a different hyperlink based on whether user is viewing the page from which the link is on in IE, Edge, or Chrome?

Use case: We are using a vendor-based app that works well in Chrome and Edge but not so well in IE. We’d like to detect which browser the user is hitting the link from and, if they are using IE, use a link that has the “microsoft-edge…” prefix on the URL. If the user is not using IE, then ignore the prefix (or use a link without the prefix).

I’m guessing there is some sort of javascript that could do this but not sure and not a super-techy user.