Let's give credit where it's due: https://github.com/maybenot-io/maybenot
The Maybenot Framework (FOSS) is how Mulvad pulls this off, and if you run your own VPN you can use this too! Mulvad is a contributor (and funder), so good on them.
Edit: for those interested, Mulvad's client is a fork of Wireguard with Maybenot incorporated as a submodule. Cool stuff: https://github.com/mullvad/wireguard-go