I've built an app using Ionic, Angular and Capacitor and I'm facing some UI issues when dark mode is enabled in certain cases and devices. More specifically i faced the issue in Xiaomi android devices (Redmi note 9). After some research I found out that Xiaomi is using MIUI which is forcing the dark mode when is available to be applied in the App no matter what. I found some solutions but they didn't work for me.
The one solution suggests to add in index.html the following meta tag in order to always force the app tho use the light theme.
<meta name="color-scheme" content="light" />
The other solution i found is to edit variables.scss and comment out the media query referring to dark mode as follows:
// @media (prefers-color-scheme: dark) {
.
.
.}
Neither solutions work. I am open to any solutions out there :)
Thanks in advance!