To make this recipe gluten-free, substitute the all-purpose flour with a certified gluten-free 1:1 baking flour. Additionally, ensure that the oatmeal and other ingredients, such as the white chocolate and sweetened condensed milk, are certified gluten-free to avoid cross-contamination.