Is it possible to use iPad with Safari and VSCode? I'm thinking about something like GitHub Codespaces. Like development in browser.
The caveat with the above is that you'll need something to host it. You could use a computer on your local network or a VPS of some kind (DigitalOcean, Linode, etc all have cheaper plans for hosting).
Once you get Code Server running, you can add the URL to your homepage to remove the Safari URL bar.
Can I attach proper 4K display with keyboard and mouse if necessary? Will it work like desktop (when it comes to browser)?
While I don't really think that iPad is a good replacement for Macbook Air, that's an interesting option at least.