Context. Large-scale equatorial Rossby modes have been observed on the Sun over the last two solar cycles. Aims. We investigate the impact of the time-varying zonal flows on the frequencies of Rossby modes. Methods. A first-order perturbation theory approach is used to obtain an expression for the expected shift in the mode frequencies due to perturbations in the internal rotation rate. Results. Using the time-varying rotation from helioseismic