To make these cookies gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. Ensure that the cocoa powder and marshmallows are certified gluten-free, as some brands may include traces of gluten. The rest of the recipe remains the same, delivering equally delicious results.