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

Bootstrap class: .d-*-table

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

Preview

d-table
d-sm-table d-md-table d-lg-table d-xl-table