Ionic 6 and Capacitor 4 app's UI is breaking on prod build

I have developed an Ionic app (Ionic 6 + Capacitor 4). When I build the app without network security config (for android) it is working fine. Once I add network security config, App’s UI is breaking and it is misbehaving. Can you please help me fix this issue.