> ## 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.

⚠️ **Important notice**

This customization only works with Version 1 of the Upcart cart modules. If you recently upgraded your cart to Version 2, these customizations may not work. You will need to use the new selectors provided for Version 2 in the [migration guide.](/upcart/upcart_v20_migration_guide)

If your customizations are not working as expected, you can also revert your cart back to Version 1 instead of using Version 2.

We are currently working on new customization templates for Version 2 of the modules, and they will be available soon.

# 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/-dxnKm0Mro2whB9j/images/upcart/834a684067f2.gif?s=bd17b6b8f008e89818e9abba796b927e" alt="Image" width="400" data-path="images/upcart/834a684067f2.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:

**Cart Editor > Settings > CSS**

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