Ionic mode on different screen sizes?

Is there a way to change the modes like, mode = ‘ios’ or mode = ‘md’ for different screen sizes?

Can you explain why you want to do that?

I want the ionic alert to use the ‘ios’ mode on mobile screens and the default ‘md’ mode on desktop screens.

Mhh okay :thinking: so what you can do is determ the mode by the size of window.innerWidth