I'm trying to create a mobile & desktop responsive container that looks like this. The base HTML looks like the following and I can add any elements or classes as needed.
<div class="container">
<div class="box1">1</div>
<div class="box2">2</div>
<div class="box3">3</div>
</div>
My own attempt led me to this. The desktop version is just how I want it. But boxes 2 and 3 on mobile are swapped. I want it to display vertically and sequentially from 1 to 3. If I could put a container on 2 and 3, I would be able to use flex-direction: column-reverse in the media query but then the desktop view would be incorrect because I need the container on boxes 1 and 3 to put them in a column and set the flex-basis. Any input on how else to approach this would be appreciated.