How to make my custom classes responsive, so that it becomes responsive on every device
You could use ionic grid layout.
or using flexbox (ionic is already using it in their scss:
or build something like bootstraps sm, xs, lg, md classes with media queries: