Bootstrap class: .sticky-xl-top

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

Preview

Stick to the top on viewports sized XL (extra-large) or wider

Tips 💡

More in Bootstrap Positioning