I think the browser displays this message BEFORE the connection to the website so I think you should be fine.
And also don’t click any suspicious link on your phone. If you really want to go to these links, try them first on an isolated environment like a VM with a live ISO of Linux Mint XFCE or another lightweight distro for example.