To keep guacamole from turning brown overnight, squeeze lemon or lime juice over the surface of the guacamole and then cover it tightly with plastic wrap, ensuring no air is trapped inside the container.