In this paper, a new method for measuring the viscosity of liquids at high pressure is presented. To this end the authors have applied an ultrasonic method using the Bleustein-Gulyaev (BG) surface acoustic wave. By applying the perturbation method, we can prove that the change in the complex propagation constant of the BG wave produced by the layer of liquid loading the waveguide surface is proportional to the shear mechanical impedance of the liquid. In the article, a measuring setup employing the BG wave for the purpose of measuring the viscosity of liquids at high pressure (up to 1 GPa) is presented. The results of high-pressure viscosity measurements of triolein and castor oil are also presented. In this paper the model of a Newtonian liquid was applied. Using this new method it is also possible to measure the viscosity of liquids during the phase transition and during the decompression process (hysteresis of the dependence of viscosity on pressure).