How to detect infinity display to add extra padding?

hello,
i am building an app and when tested on galaxy note 20 ultra i saw some icons and stuff are in the curved borders…
how can i prevent this?
is there any way to add a padding programmatically or automagically to the layout when the app is running on devices with this type of borders/screen?

Thanks!!!