Answer
Mercury must have a higher rate of expansion than the glass. Since the mercury rises with temperature, the volume of mercury present is growing faster than the volume of the hollow channel in the glass.
If the expansion rates were identical, the reading would not change with temperature.