If an element is set to width: 100vw; and there is a vertical scrollbar the width of the element will be equal to the viewport plus the width of the scrollbar.<
width: 100vw;
I had the same problem. When I changed the vw units to percentage, horizontal scrollbar disappeared.