How to change the width of text on mobile

Topic summary

A Shopify store owner wants to standardize text width across multiple sections on mobile devices only, matching the width of their Rich Text section.

Affected sections:

  • Image with Text
  • Email Sign-Up
  • Product Description

Current status: Unresolved

One responder suggested adding padding-left and padding-right for screens under 750px. Another provided CSS code targeting specific classes with a max-width of 768px, but this solution only adjusted image width rather than text width.

The original poster clarified they need to expand text width across all sections to match the Rich Text section’s width, not reduce it. They’ve provided live site URLs for reference and are seeking section-specific CSS code that can be added to custom CSS fields for mobile devices only.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hey, I’d like to set the width of all text (Image with Text, text in the Email Sign-Up section, Product Description) to be the same as the text width in the Rich Text section.

So like this:

Maybe it will be enough if you give me the code for each section separately (Image with Text, Rich Text, Product Descriptions, Email Sign-Up…), and I’ll add it to the section’s custom CSS.

I ONLY WANT THIS ON MOBILE!

You can check it here: https://1049xn-ya.myshopify.com/products/editing-masterclass

(And you’ll find the email sign-up section all the way at the bottom here: https://1049xn-ya.myshopify.com/ )

Thanks a lot,
Tim

You just need to add some padding-left and padding-right to your image section and apply only to mobile. In your case, less than 750px.

Hey, could you please provide me with the code for this?

Hi @CreatorTim

In order to fulfill your request, please follow these steps
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above

{% style %}
@media screen and (max-width: 768px){
.product__description.rte.quick-add-hidden,
.page-width > .image-with-text,
.newsletter__wrapper {
    width: calc(100% - 4rem / var(--font-body-scale));
    margin-inline: auto !important;
}
}
{% endstyle %}

Here is the result:

I hope this helps

Best,

Daisy

Hey, it only adjusted the image width. I want to expand all the text everywhere to match the same width as the Rich Text section.

How can I do that?

You can check it how it looks here: https://1049xn-ya.myshopify.com/products/editing-masterclass

Thanks a lot,
Tim