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 so what you can do is determ the mode by the size of window.innerWidth
Late reply - another suggestion is to use platform to determine which device you are on.
1 Like