Different icons for buttons rendered with a query loop?

I’ve got a bunch of buttons being rendered with a query loop for a custom taxonomy. I’d like each button to have a different icon that represents its taxonomy. Obviously when I add an icon to the “master” button they all have the same icon. Any help appreciated :slight_smile: