To ensure the recipe is gluten-free, use a certified gluten-free pistachio pudding mix, and verify that the marshmallows, whipped topping, and pecans are processed in a gluten-free facility. Most brands are safe, but it’s important to read labels carefully to avoid cross-contamination.