Answer
When the thermometer is suddenly warmed, the outside (glass) is heated before the inside (mercury). The glass is the first to expand, enlarging the width and height of the opening. The mercury level in the tube momentarily drops into the bulb at the bottom. After the mercury's temperature catches up to that of the glass, it rises in the glass tube because of its greater expansion coefficient.