From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 400px){
h2.image-with-text__heading.inline-richtext.h1 {
padding: 0 20px;
}
}
I hope you are well. You can follow our instructions below: 1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd 2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z- 3/ Copy the code below and paste it there
Here is the code for Step 3:
@media screen and (max-width: 768px){
.image-with-text__text-item.grid__item h2 {
text-align: center !important;
}
}