Place mayonnaise, garlic, lemon zest, lemon juice, mustard, salt and pepper in the container of a food processor or blender. Pulse ingredients into a thick base.
With machine running, pour olive oil in a slow stream through the top tube.
Place dressing in a lidded container and stir in anchovies, if using.
Use immediately or refrigerate in a sealed container up to 1 week.