Chiral Majorana edge modes are theoretically proposed to perform braiding operations for the potential quantum computation. Here, we suggest a scheme to regulate trajectories of the chiral Majorana fermion based on a quantum anomalous Hall insulator (QAHI)-topological superconductor heterostructure. An applied external gate voltage to the QAHI region introduces a dynamical phase so that the outgoing Majorana fermions can be prominently tuned to different leads. The trajectory is mechanically analyzed and the electrical manipulation is represented by the oscillating transmission coefficients versus the gate voltage. Through the optimization of devices, the conductance is likewise detectable to be periodically oscillating, which means an experimental control of chiral Majorana edge modes. Besides, this oscillating period which is robust against disorder also provides an attainable method of observing the energy dispersion relation of the edge mode of the QAHI. Furthermore, the oscillating behavior of conductance serves as smoking-gun evidence of the existence of the chiral Majorana fermion, which could be experimentally confirmed.