There should be an electron competitor that replaces the chromium part with any installed browser (on any platform) and the node.js part with a library with a C interface that can be interoperated with from my language of choice. That should be possible in <1MB. There libraries that do that, but they either lack important features or are too tightly integrated with a specific programming language to use.

I've never used it, but I've heard good things about Tauri: https://github.com/tauri-apps/tauri