To prepare this cake gluten-free, substitute the cake flour with a certified gluten-free cake flour blend containing xanthan gum for structure. Ensure the baking powder, coconut milk, raspberry preserves, and shredded coconut are labeled gluten-free to avoid cross-contamination.