To make this recipe gluten-free, substitute the all-purpose flour with a reputable gluten-free all-purpose flour blend that includes xanthan gum or another binding agent. Confirm that all other ingredients, including cocoa powder and baking powder, are certified gluten-free to avoid cross-contamination. Follow the recipe as directed, adjusting baking time slightly if needed.