To make these Tom Thumb Bars gluten-free, substitute the all-purpose flour in both the crust and topping with a gluten-free 1:1 baking flour blend that contains xanthan gum or another binder. Additionally, confirm that all other ingredients (especially baking powder and shredded coconut) are labeled certified gluten-free to avoid cross-contamination. The texture may be slightly softer but will still hold together well and offer the same nostalgic flavor and chew.