Weight loss is largely determined by a calorie deficit, not by the avoidance of specific ingredients like gluten. If switching your diet to a gluten-free vegan diet results in a calorie deficit from the diet you typically follow then yes, that will result in weight loss. However, the elimination of gluten and/or the avoidance of animal products alone will not result in weight loss if there’s no change to your total daily calorie intake.