I have a problem with bootstrap lines. I want to use images on the right and left, as on modern websites. However, on smaller screens, I need the image to be at the top.

However, this happens:

I was thinking about using flex, but it does not have the response lines that I need in order for the image to be fluid.
<div class="container">
<div class="row">
<div class="col-md-7 col-sm-12 col-xs-12 ">
</div>
<div class="col-md-5 col-sm-12 col-xs-12 ">
<img class="img-fluid" src="url"></img>
</div>
</div>
</div>
source
share