Viewport-pinned labels need deliberate offsets and a stacking level. Mobile browser controls can change how much space appears around a fixed label.
Worked example
<div class="demo fixed bottom-4 right-4">
Pin a label to the preview viewport
</div>Implementation notes
A fixed badge can be trapped in an ancestor stacking context. A higher local z-index cannot always place it above an unrelated header.
Try it yourself
Rotate a phone and open the on-screen keyboard.
Open the Tailwind CSS example →Editorial date January 9, 2026 · Published December 6, 2026