The homogeneous acid etching of conventional acid in porous heterogeneous carbonate reservoirs leads to a large amount of consumption in the near-wellbore area, which makes the acidification effect often not ideal. In order to improve the acidizing effect of porous heterogeneous carbonate reservoirs, viscous acid is used to increase the stimulation of the target block in this paper. Through systematic experiments, the adaptability of the viscous acid in the four layers of the M reservoir in the target block was evaluated, and the MD and ME layers suitable for acidizing stimulation were determined in combination with physical property analysis. Finally, based on the geological characteristics and experimental data of the preferred layers, a two-scale acid wormhole growth radial model was established, and the construction parameters of acidizing stimulation were optimized. The results show that (1) The preferred viscous acid system has a dissolution rate of more than 95% for the rock powder in the four layers. When the matrix permeability is high, the effect of the acid wormhole is obvious and the permeability increase is higher. (2) The steel sheet corrosion and residual acid damage experiments showed that the acid system was not corrosive to the wellbore, and the reservoir damage rate of the residual acid after the reaction was low. (3) Based on the relationship between reservoir porosity and permeability and the position of edge and bottom water, the MD and ME layers with more potential for acidizing stimulation are selected. (4) The results of the numerical simulation show that the optimal acid pump rate of the MD and ME layers is 1.4 bpm and 1.0 bpm, and the acidizing fluid volume is 255 bbl, which can form effective acid wormholes, and the range of reservoir permeability transformation is the largest. The field application results show that the optimization scheme effectively improves the production of oil wells, verifies the practicability of the scheme, and provides a reference for the process optimization of viscous acid in the same type of porous heterogeneous carbonate reservoir stimulation.