how to hide mobile display in buy now button is hide

Topic summary

Main issue: Hide the “Buy Now” button on mobile devices only, later expanded to also hide the “Add to Cart” button on mobile.

Proposed solutions:

  • CSS in base.css to hide #gokwik-buy-now entirely (not mobile-specific).
  • theme.liquid media query (max-width: 767px) to hide .productView-groupBottom, intended for mobile.
  • theme.liquid media query to hide .product-form__buttons to remove the Add to Cart button on mobile.

Latest update: After applying both mobile CSS rules, the Add to Cart button still appears on mobile. Screenshots were shared showing the issue persists.

Notes/clarifications:

  • “Media query” limits CSS to screens at or below 767px width (mobile).
  • The provided snippets in the thread show spacing anomalies (e.g., “productView-g roupBottom”, “disp lay”) that could prevent CSS from applying, and selectors may be theme-specific.

Status: Unresolved. Next steps likely require correcting CSS typos, confirming the correct selectors for the store’s theme, or using browser DevTools to identify the exact classes/IDs for the Buy Now and Add to Cart elements on mobile.

Summarized with AI on December 20. AI used: gpt-5.

our website in buy now button show i want to requested this buy now button in hide only mobile device

is this possible?

in this case is possible to help in this case

HEllo @zelzis
Go to online store ----> themes ----> actions ----> edit code---->base.css
add this code at the end of the file.

#gokwik-buy-now {
display: none !important;
}

result

If this was helpful, hit the like button and accept the solution.
Thanks

Hello @zelzis

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

@media screen and (max-width: 767px){ .productView-groupBottom { display: none !important; } }

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

this are work but i also remove add to cart button in mobile device please check and help in this case

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

@media screen and (max-width: 767px){ .product-form__buttons { display: none !important; } }

my reply helpful? Click Like to let me know!
your question answered? Mark MY Both Solutions as an Accepted Solution.

i want two code apply but add to cart button is not remove in mobile device please ceheck any update for this case