To change the font size of H4 elements within a Rich Text element on Webflow only for mobile screen sizes, use Webflow’s style panel combined with responsive breakpoints.
1. Select the Rich Text Element
- Click on the Rich Text element on your canvas.
- If your H4s are inside a Rich Text block, Webflow treats them as nested tag styles.
2. Switch to the Mobile Breakpoint
- In the top bar of the Designer, click the Mobile Portrait icon (the smallest breakpoint).
- This enables you to apply styles that only affect that screen size and below (unless overridden).
3. Target the H4 Inside the Rich Text
- In the Style panel (right sidebar), go to the "Selector field".
- Click it and choose "All H4 Headings inside of [Rich Text class]".
- If the Rich Text element has no class, assign one (e.g.,
rich-text), then repeat this step.
4. Adjust the Font Size
- With the H4 inside your Rich Text block selected, set your desired font size under Typography in the Style panel.
- This change only applies to mobile portrait and smaller views (unless overridden later).
5. Preview and Test
- Use the preview mode and change screen sizes to ensure your change appears correctly just on mobile.
Summary
To change H4 font size in a Rich Text element for mobile, select the mobile breakpoint, choose the nested selector for H4 inside your Rich Text class, and adjust the font size. This targets only mobile screen sizes without affecting desktop or tablet views.