Direct mount instead of sync

Instead of syncing, is it possible to directly edit files remotely on android somehow?

I guess I can do it between desktops on the local network using a mounted network samba share.
But how to do this with a phone when mobile?

I think my problems are related to using graphemeOS. I should (and will once I have material to publish) fix this by subscribing to sync, but I’m curious about this approach.