Unfortunately, Apple doesn’t want you to do this, so the story is complicated. Start with this nice video:

I like the strategy a lot: no Wi-Fi, just a single Thunderbolt cable and Sidecar with a scaled view. The catch is that it only works with disk encryption switched off and automatic login switched on. That is not something I want on a machine I take on the road.
So I tested several ways of unlocking the Mac mini remotely. I even wrote my own app, which re-enters over VNC and types the password as soon as a preconfigured iPad is attached. In principle this worked, but it was not universal: even German umlauts no longer came through correctly and even timing was critical.
The solution that I now propose needs two small pieces of hardware. The first is a cheap HDMI dongle. The second is a more expensive USB-C dongle that acts as a keyboard.

I am now flashing a Waveshare RP2040-One for that purpose; if it is not working I will go for the Openterface; it it is still not working I will test the more extensive YubiKey that finally might do the job.
After inserting both dongles, the workflow will be straightforward.
- Set up the iPad and the Mac mini as described in part I.
- Then install SidecarLauncher on the Mac mini, as shown in the video, together with BetterDisplay.
- On the iPad, install the KeyCmd app to type the password.