Okay, it was a bug in Android. Updated to the latest one - Android Studio Ladybug Feature Drop | 2024.2.2 and it works fine for my popup previews.