To make this Yellow Lentil Soup gluten-free, replace the all-purpose flour with gluten-free flour or cornstarch. If using cornstarch, mix 1 tbsp cornstarch with 2 tbsp water to create a slurry, then add it directly to the soup after blending. Ensure that the stock cubes used are certified gluten-free, as some may contain gluten-based additives.