To adapt this recipe for a gluten-free diet, substitute the Nilla Wafer cookies with certified gluten-free vanilla cookies. Ensure the dulce de leche, sweetened condensed milk, and dark chocolate wafers are labeled gluten-free to avoid any cross-contamination. The preparation process remains the same.