A technique for the generation and detection of phonon polariton was developed based on the near-field heterodyne transient grating method. It features a compact and simple optical setup and easy wavelength tuning ability of the phonon polariton. The wavelength was tuned by changing the grating spacing of a transmission grating positioned in front of a sample, and this was performed by sliding a glass plate with transmission gratings with many different grating spacings along the glass plate surface.