To make this recipe gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend that includes xanthan gum for structure. Additionally, ensure that the Oreo cookies or chocolate sandwich cookies used are certified gluten-free, as traditional Oreos contain wheat. Always double-check product labels to confirm gluten-free certification.