Allowing for notch on Android device

Is there a way to determine if an Android device has a notch at the top of the screen, for a PWA?

ie by accessing the API WindowInsets.getDisplayCutout()?

Currently, the UI is obscured by the notch on Android devices but not on an iPhone device with a notch.

Does this help?