how to open a url in user default browser in a trusted web activity app?

i have a twa appliction that is generated using pwabuilder website.
the website has a payment page that base on some policies the payment page should only open in user browser.
i use the below code to open the url in user default browser.

String query = Uri.encode(url, "UTF-8");
Intent browserIntent = new Intent(CATEGORY_BROWSABLE, Uri.parse(Uri.decode(query)));
browserIntent.setAction(ACTION_VIEW);
startActivity(browserIntent);

the problem is that that in xiaomi miui phones when code reach to startActivity(browserIntent) the payment page open in the app not in the user browser.
but when i test it in samsung apps it successfully got open in my phones browser.

i test the below code to and the problem with this code is that in miui phones when it reach to startActivity nothing happens:

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(browserIntent);

however i find that if i give Display pop-up windows while running in the background permission to my app in miui phones the user browser opens successfully but i saw apps that can open users browsers in miui without this permission.

i search a lot but i don’t find any solution to this problem.