If the problem is on Android, I think you can try to change
WindowSoftInputModeAdjust
in the xaml define the namespace
xmlns:android="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific;assembly=Microsoft.Maui.Controls"
then change this
android:Application.WindowSoftInputModeAdjust="Pan"