Fill a cocktail shaker with ice. Add the mezcal, syrup, and triple sec and shake or stir for 10 seconds.
Spread the salt on a small plate. Moisten the rim of a glass with one of the lime wedges; dip the rim in the salt and twist to coat. Pour or strain the mixture into the glass. Garnish with the bacon (if using) and lime wedge.