How can I alternate dynamic grid elements?

You didn’t attach the photo so I haven’t seen an example but I can guess what you’re going for. You can achieve this using Even/Odd item styling if you’re using a Collection List. The article I linked explains how to achieve this.