Open mobile app on link click

When a user clicks on a link with the app’s domain, how can I get the user’s device to detect if the mobile app is installed and launch it to the requested page? Using a custom URL scheme is not an option.