To make this recipe gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking mix. Ensure that all additional ingredients, such as cocoa powder, baking soda, and powdered sugar, are certified gluten-free to avoid cross-contamination.