For anyone who’s trying to get it done and, unfortunately, the accepted solution not working, I suggest updating the .browserslistrc
file as in Ionic 6 default project white screen on Android 30 or below when using --prod - #20 by ldebeasi with the following content:
Chrome >=60
Firefox >=63
Edge >=79
Safari >=13
iOS >=13
I had this issue targeting Android APIs lower than or equal to 30.