Turn VPN on when Connected to Specific Network

Is it possible to create a Shortcut to turn on my VPN app when connected to a specific network? This would be for times at I’m at work. I currently use Mallvad VPN.

yeah you could set the automation that whenever you open safari (or anything) it checks wifi and vpn status. i have it to prompt me that im not on vpn whenever i open safari. location automations do not run independently yet