Is it ok to mow the lawn using a ride on mower during pregnancyk?

Depends. If your mower is not shaking you more than a typical commute in your car it should not be a problem.
Ask obstetrician b. Best advice is to speak with your obstetrician for any questions relating to your pregnancy.