DMVPN

Hi
Can you please tell me how to configure DMVPN un mikrotik OS?

And how to use OSPF on it

Have you tried to check if DMVPN even exist on Mikrotik?

More to the point, you are in the wrong forum please go here → https://www.cisco.com/c/en/us/products/collateral/security/dynamic-multipoint-vpn-dmvpn/data_sheet_c78-468520.html
If searching for information on MT products best best is to start here → https://help.mikrotik.com/docs/
As you can see, nil results on search.

A modern alternative to DMVPN is an SD-WAN solution like ZeroTier, which is built into RouterOS. If you need both, you can integrate DMVPN with ZeroTier.

Another post that misses the mark by a country mile.
The incorrect approach is coming here with a solution space query.
The correct approach is to come here stating the requirements of the users ( you can mention that in other worlds, DMVPN was a useful tool )
Knowing the context of the query, the network setup, the users requirement etc, the formulation of a config using known MT toolsets is a viable approach.