To make these Bavarian cream donuts gluten-free, substitute the all-purpose flour with a high-quality gluten-free flour blend that contains xanthan gum. Ensure all other ingredients, including the yeast and vanilla extract, are certified gluten-free. The results may be slightly denser due to the flour swap, but the rich Bavarian cream will still make them delightful.