That's a very specific and challenging requirement for iOS automation!
Unfortunately, due to the tight security sandbox Apple enforces, there is no direct, public, or officially supported way for Appium/WebdriverIO (or any other standard automation framework) to programmatically toggle Airplane Mode or Mobile Data settings on a non-jailbroken physical iOS device or even a standard iOS Simulator.