To make this recipe gluten free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend that contains xanthan gum. Additionally, confirm that the baking powder, cocoa powder, espresso powder, and marshmallows are certified gluten free, as cross-contamination can occur during processing.