If you are using bootstrapApplication() in Angular, you can modify the global configuration of Ionic using provideIonicAngular() like this in main.ts file
bootstrapApplication(AppComponent, {
providers: [
// other providers
provideIonicAngular({ mode: 'ios' }),
]
});