You'll first need to access your Intelligent Wi-Fi settings by opening your Settings app, tapping on the Connections tab, then Wi-Fi, then the three dots (for expanded settings) on the top-right ...
Auto-connecting your VPN on public Wi-Fi adds privacy and peace of mind without relying on your memory or manual toggles.