Think what you want to do can be done in capacitor with wappler. Never tried it though.
If you look at the docs at
Then look fo the server section and then the url option. Think it might just b a case of put your url in here and then build and submit in the normal way.
This post might give you a idea of how the config should look https://forum.ionicframework.com/t/ionic-url-vs-webdir-how-to-run-app-from-webdir/222624