My current layout displays like this on devices with large and small screens:
https://i.sstatic.net/htk3e.png
I'm looking to have the same divs arranged as rows on large screens and columns on small screens. Is there a way to achieve this without duplicating the div structure? The approach I've considered involves using classes like:
.box-a.row.visible-lg.hidden-sm
.box-b.row.visible-lg.hidden-sm
.box-c.row.visible-lg.hidden-sm
.box-a.col-sm-4.visible-sm.hidden-lg
.box-b.col-sm-4.visible-sm.hidden-lg
.box-c.col-sm-4.visible-sm.hidden-lg
However, as mentioned, this method leads to repetitive code. Are there cleaner ways to accomplish this while following the DRY principle?