OnScreenSizeMarkup is a XAML markup extension for controlling UI elements (Views) based on the category a device's screen sizes fits in (Medium-sized devices, Large-sized devices, and etc).
Why do you think that https://github.com/dotnet/Microsoft.Maui.Graphics is a good alternative to OnScreenSizeMarkup