How can I adjust my social media icon for mobile view only?

Topic summary

Mobile-only adjustment of a social media icon’s position in a Shopify theme. The icon was touching a line on mobile; desktop layout was fine. An image link was provided to illustrate the issue, and the store URL was shared privately to maintain privacy.

Solution: Add a CSS media query (rules that apply only below a set screen width). In Assets > base.css/style.css/theme.css, include a rule for max-width: 749px targeting .footer__content-bottom.scroll-trigger.animate–slide-in and increase spacing, e.g., margin-top: 20px (tunable to preference). This changes mobile layout only and leaves desktop unaffected.

Outcome: The change worked as intended, moving the icon away from the line on mobile. Privacy requests were respected, and the thread is resolved with no further open questions.

Summarized with AI on January 14. AI used: gpt-5.

Hey. I want to slightly change my social media icon for mobile ONLY. It is good on desktop.

Here is a picture of the problem:
https://gyazo.com/7747d4ae93abfbf45da8556b940ae850

It is on the line, I want it moved up slightly just so its not touching the line. Thank you in advance if anyone can help me out!

1 Like

Hi @manoman

Would you mind to share your Store URL website? with password if its unpublish. Thanks!

Yes. I will send you a PM with the site url. It’s published so no password needed. Please do not post screenshots of my site or the url here on the thread where everyone can see. I want to keep that private. Thank you so much for replying! Sorry for the late response.

1 Like

Thank you for the info, no worries I understand.

Try this one.

  • 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: 749px){
.footer__content-bottom.scroll-trigger.animate--slide-in {
    margin-top: 20px;
}
}
  • And Save.
  • Note: you can change the size you like.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Thank you so much. Worked perfectly!

1 Like