how can i remove the cart icon only on mobile and tablet?

how can i remove the cart icon only on mobile and tablet? none of the css codes ive seen work for me.

Hi @Amin_5

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.

  3. 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:

  4. @media only screen and (max-width: 989px){
    .header__icon--cart {
        display: none !important;
    }
    }
    
  5. And Save.

  6. Result:

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Love