Why you have an additional space when you have set width or height to screen size (100vw) — TainwindCSS

Even you have set the width as 100vw (It means 100% of screen, correspondent with ‘h-screen’ on TailwindCSS)

You got additional margin.

Because, the 100vw size doesn't count the size of scroll bar. To resolve this, You can choose two options.

Use ‘w-full’ but ‘w-screen’

Use ‘w-full’ but ‘w-screen’, and that count the size of scroll bar, and doesn’t make additional margin.

Or add ‘w-max-full’

Or add ‘w-max-full’. It limits the width to full of width. And it’s not over the full width of the screen.

Check a post on the StackOverFlow