Short answer
A kill switch blocks internet traffic while the VPN is down, so nothing slips out unprotected during a reconnect.
On Android, enable Always-on VPN and Block connections without VPN. On Windows, tick Block untunneled traffic in WireGuard. On iPhone, iPad and Mac, turn on On-Demand in the WireGuard app, which restarts the tunnel on every network.