> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aftersell.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cart allows left/right scrolling on mobile

> This article explains how to fix a bug that allows Upcart contents to move left and right.

# Overview

On certain mobile devices, users might be able to scroll the Upcart horizontally, exposing an unintended white space on the right. This usually occurs when a child element within the cart exceeds the viewport width or disrupts the layout’s natural constraints, resulting in horizontal overflow.

<img src="https://mintcdn.com/aftersell/uxKAdY-e0h16xa48/images/upcart/mobile-scrolling-cart-drawer-sideways-reveal.gif?s=a56e1b9142181c3b06f1a7fed5e07c72" alt="Mobile Upcart cart drawer scrolling sideways to reveal unwanted white space on the right" width="400" data-path="images/upcart/mobile-scrolling-cart-drawer-sideways-reveal.gif" />

***

## **CSS Solution**

To prevent this behavior and keep the cart constrained to the viewport width, simply copy the code below and add it to the following directory:

In the Cart Editor, open **Settings** and select the **Custom CSS** tab. Settings is a row of tabs — if you don't see Custom CSS, it's behind **More settings**.

```
.upcart-cart-body  
{  
	overflow-x: hidden !important;  
}
```
