Bootstrap class: .sticky-lg-top

    <div class="sticky-lg-top p-3 bg-info">Stick to the top on viewports sized LG (large) or wider</div>

Preview

Stick to the top on viewports sized LG (large) or wider

Tips 💡

More in Bootstrap Positioning