Hello, I’m not sure exactly how your code is built, but this seems something that can be solved using either css flexbox or grid. You can add a media query for mobile devices and change the layout.
It would look something like: @media (max-width: 768px){
.container{
flex-direction: row-reverse;
}
}