Change on sale badge to % - Brooklyn theme

Trying to figure out how to change the sale badge to percentage off rather than “Save $”. I have found some solutions but none have them have worked and/or did not work for mobile as well. I will attach an image of what I want to change. Any help is much appreciated, thank you!

HI @zachv

1: Online store > themes > Actions > Edit code > Snippets > product-grid-item.liquid

2:

replace

{% capture saved_amount %}{{ product.compare_at_price | minus: product.price | money_without_trailing_zeros }}{% endcapture %}
          

{{ 'products.general.save_html' | t: saved_amount: saved_amount }}

with

{% comment %}
          {% capture saved_amount %}{{ product.compare_at_price | minus: product.price | money_without_trailing_zeros }}{% endcapture %}
          

{{ 'products.general.save_html' | t: saved_amount: saved_amount }}

          {% endcomment %}
          

{{product.compare_at_price | minus: product.price | times: 100 | divided_by:  product.compare_at_price }}% off