Is it possible to detect with JavaScript when safari on iOS has been opened from an app and is showing this type of UI? You can get here on iOS 12 by opening a link from the gmail app using safari.
Update: To be clear I'm looking to find when the chrome of safari is in the state pictured in the image, and not the state that the safari app normally launches in