Disable dynamic mapping over all nodes

I want to disable dynamic mappings for all indices over all nodes of cluster.

how can i do this?

You can use a strict mapping for each index.

See dynamic | Elasticsearch Guide [7.15] | Elastic

If you want to define this anytime a new index is created, you might have to create an index template.
I'd recommend just applying the index template to your own indices and not the elastic internal indices.