I know it\'s possible to link directly to an app in iOS by registering a custom scheme (e.g. so://) and it\'s also possible to link to the app in the appstore via itunes.
"Smart App Banners" - not sure when they showed up but after finding this post looking for same, then Smart App Banners, this is follow up.
Smart App Banners are a single line html meta tag in the header of each page you want to offer your app over the web experience :
which shows that icon at the top of the page and "Open this page in" with either the app or routing to the App Store.
The metadata for this page on the iPhone looks like this (anonymized of course):
Apple Developer Documentation - Promoting Apps with Smart App Banners