To make this recipe gluten free, replace the cake flour with a high-quality gluten-free flour blend that is specifically formulated for baking cakes. Also confirm that the baking powder, baking soda, vanilla extract, almond extract, powdered sugar, and mascarpone are labeled gluten free, as ingredients and manufacturing practices can vary by brand. For best results, consider using a gluten-free flour blend that already contains xanthan gum, or add xanthan gum if recommended by the manufacturer.