Don't want to learn Bootstrap classes? Go to Bootstrap builder for busy developers.

Bootstrap class: .d-*-inline-flex

<div class="d-inline-flex bg-primary">d-inline-flex</div>
<span class="d-sm-inline-flex bg-primary">d-sm-inline-flex</span>
<span class="d-md-inline-flex bg-primary">d-md-inline-flex</span>
<span class="d-lg-inline-flex bg-primary">d-lg-inline-flex</span>
<span class="d-xl-inline-flex bg-primary">d-xl-inline-flex</span>

Preview

d-inline-flex
d-sm-inline-flex d-md-inline-flex d-lg-inline-flex d-xl-inline-flex