When the app says “Homey is offline”, most of the time it only means the app can’t reach Homey.
When you install an app like Net Scan, it can check f.e. the connection to your router.
You’ll see Homey is still online in most cases when the app says it’s not.
To see if it’s only the app <> Homey problem, you could try this:
Turn off the phone’s wifi, let it connect to mobile 4G and try to open the Homey app again, probably it connects right away.
By the way, this long lasting bug should be fixed with the firmware v10.3.3 update