Using Appium in a Real Production App


I am trying to use Appium not just for testing but in a browser automation app I’m working on. My question is about using it on iOS and Android. When testing the app on iOS it seems the WebDriver is running on my macOS. Is there a way to include Appium in my real production app? Meaning, can I use Appium even when my iPhone (and Android for that matter) is NOT connect to my mac? If not, are there any libraries that would allow this. I’ve search for days about this so I’d really appreciate your feedback!

Thank you!