Alternative URL on webpage card in lovelace

Is it possible, with the webpage card, to use a different URL when on the local home network versus when on the internet ?
Or to have a second, alternative URL when the main one isn’t accessible ?
I’m showing a Vue webapp in one of my dashboards.
That app is hosted on a Raspberry Pi on my local network and is accessible from the internet, but it has a different URL on the local hetwork then on the internet.

I would suggest to try DNS rewrite to route the URL to the local address when queried through home network.

On a similar topic, where is the web page card found. How do I install this please. I’m very new to HA