Basically on desktop you can use per-app or IP tables firewalls, and on mobile you can use mobile firewalls or just switch off Internet access to Obsidian.
Some suggestions:
- Windows: TinyFirewall
- Mac: Lulu
- Linux: OpenSnitch (+ GUI)
- Android: NetGuard (supports IP tables as well)
- iOS: [no idea]