Capacitor does not generate unique accessibility locators to use with Appium

I am working on testing an app that is build with Ionic and transformed into native code with Capacitor.

Problem is that I am having all sorts of unreproducible error when trying to use XPath to test is on AWS Device Farm using Appium. As suggested by Appium

Using XPath locators is not recommended and can lead to fragile tests. Ask your development team to provide unique accessibility locators instead

I need to be able to set unique accessibility locators in order to have more reliable tests. But I cannot figure out a way to make capacitor create such ids. I think I could set those up inside the android/ios folder. But that would not survive an upcoming Ionic build.

I have such menu button

But show no id on the generated code