A magnifying glass that submits a product search needs a name such as “Search products”. The same graphic that enlarges a product photo needs “Enlarge photo”.

If the button already contains visible “Search products” text, an empty alt on the redundant icon can prevent a repeated announcement. Inspect the button's computed accessible name and activate it using the keyboard to confirm that name matches the outcome.

Image Alt Text for SEO & Accessibility · Functional Images