The reason might be that you aren’t switching screens correctly:
Using open another screen block
will only open the another screen and the old screen will remain in the stack and won’t be closed
Note : that doesn’t happen in the companion, as the companion simulates multiple screens by drawing the new screen and clearing the previous one, the APK opens another screen and keeps the previous screen in stack , hence, closing the new screen, will move the previous screen to the foreground.