When projects are targeted with SDK 35 or higher, an issue occurs where AdMob interstitial ads overlap the status bar when edge-to-edge display is enabled on Android, especially on Android 15 and above. This issue is common among many developers and is primarily caused by the way the AdMob SDK handles interstitial ad activity, which you as an app developer cannot directly control. The solution is to apply a Theme to AdActivity
Implementation:
1. Open res > values > styles.xml and add the following line of code:
<style name="AdInspectorActivityTheme" parent="@android:style/Theme.Translucent.NoTitleBar">
<item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item>
</style>
2. Open AndroidManifest.xml and add the following line of code:
<!--suppress AndroidDomInspection -->
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@style/AdInspectorActivityTheme"
tools:replace="android:theme"
tools:ignore="MissingClass" />