On iOS, is there a way to detect a web page runs in the embedded browser and open the “real” one?

My web site uses magic links for login, however, I have a problem on mobile (not sure about Android – haven’t tried yet, but the problem exists at least on iOS): when a user receives the email say in the GMail app, the link opens in the embedded browser, meaning that cookies will not be passed to the “real” browser.

Is there a way to ensure the link in the email opens in the real system browser and therefore cookies are stored permanently?

(Essentially browser session isolation on iOS breaks a lot of things on the Internet, so surely there is a workaround?)