In mountainous regions, agricultural machinery is prone to bumping and jostling, which affects the operational accuracy and even causes accidents like rollovers. To solve these problems, this paper designs a self-balancing hydraulic platform for agricultural machinery to apply pesticide in mountainous regions. Based on MATLAB and Adams, the kinematics and dynamics of the proposed platform were simulated and analyzed in details. The kinematic simulation proves the stability of the platform and the rationality of the design parameters. Through dynamic simulation, the dynamic stress states of key components, such as cylinders and ball hinges, were identified, and the stiffness and strength of the relevant components were calculated. The simulation results further verify the validity of the platform design. On this basis, a physical prototype of the platform was designed and tested at ten different slopes. The test results indicate that that the platform completed leveling in 0.514s. During the levelling, the mean error and the maximum root mean square error peaked at 1.42° and 0.293°, respectively. The errors fall within the allowable range specified in the relevant national standard. Therefore, our platform has a high leveling accuracy and basically meets operational requirements. This research offers a desirable solution to the self-balancing of agricultural machinery operating in mountainous regions.