Ensure the oats are certified gluten-free. Also, you could experiment with substituting the wheat flour for an all-purpose gluten-free flour blend, like King Arthur’s or Bob’s Red Mill. Avoid single flours like almond flour or coconut flour, as they absorb and react with ingredients differently, so would require further recipe tweaks.