<div class="d-flex flex-wrap"> ... </div>
<div class="d-flex flex-sm-wrap"> ... </div>
<div class="d-flex flex-md-wrap"> ... </div>
<div class="d-flex flex-lg-wrap"> ... </div>
<div class="d-flex flex-xl-wrap"> ... </div>
You don't need to remember all CSS classes. Just use the Bootstrap Editor instead.