To make these Toffee Mocha Cupcakes gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend designed for baking. Ensure that the espresso powder, cocoa powder, and toffee bits are certified gluten-free, as some brands may contain gluten due to cross-contamination.