Is there away to switch back to the standalone emulator in Android Studio/Intellij Idea?
What you describe seems like Android Studio IDE Emulator Tool Window feature:
Which is documented at https://developer.android.com/studio/run/emulator#run-emulator-studio
You should be able to disable/toggle the feature in Android Studio IDE menus from Preferences/Settings -> Tool menu -> Emulator panel.