Is the firmware of Osmo Mobile 6 compatible with DJI OM 5?

No. However, the DJI Mimo app will provide the correct firmware version once connected.