To make this recipe gluten-free, substitute the all-purpose flour with a gluten-free flour blend that contains xanthan gum or a binding agent suitable for baking. Additionally, ensure all other packaged ingredients—such as baking powder, cornstarch, and chocolate—are certified gluten-free.