Appium not able to identify elements when Android version updated form Android 10 to 12

We have been using Appium (1.20-1.22) successfully for automating Hybrid Android /iOS mobile app which is built on ionic 6 and Angular 14.

However, we recently upgraded our emulators from Android 10 to Android 12.

With this changes in Android version, we have seen a change in how Appium parses the HTML and we are not able to find most of the previously used elements through Appium inspector.
Every element is identified as a view class only in Appium.

NOTE: This issue is replicable only on Android 11 and 12. Android 10 perfectly works fine.

Can anyone please help in fixing this issue?