[MAUI] Unable to identify elements in Appium with MobileBy.Id(id)

I have a MAUI mobile app whose L3s were written using Xamarin UI Tests, earlier elements were located using AutomationId set on UI elements in XAML.
But with Appium App.FindElement(MobileBy.Id(id)) is not locating the elements.
There are some custom UI controls being used in the app.