Usually they will drop right in.
The only things that can be different will be the electrical plug which is specified by the mower company to suit their loom and the control plate.
All control plates mount on the same centers so the will swap from one engine to the other as will the alternator .
There is very little difference between the 2 engines and you will not notice any difference when mowing
These