How to use different reset password URL for requests coming from website, Android and iOS frontends

We have a website and native Android and iOS apps. The built in reset password functionality works great for the website. However, we’d like mobile users to be emailed a deep link that will open the app rather than the website to reset their password and redirect them after successfully doing so. Does anyone have suggestions as to how to do this please? Can I override some of the reset password functionality to email a different URL depending on the platform the request has come from?