Automatically login with the accessible url

I have one HA instance. I want to access it from outside my home network. I do that through a VPN connection and I don’t want to expose my HA in public.
When I open the app, it waits to time out and then it asks me to refresh or go to settings and change my URL. Is there a way to do that automatically?

To do what?
From your screenshot, it’s not obvious you have a VPN enabled on your phone. Which one is it?