How to migrate MongoDB Shared Cluster to another Hardware

Thanks for sharing this info! It’s really helpful to me
If we upgrade into 4.2 then, can we migrate to 6.0 on new hardware from 4.2 to 6.0? If yes, how we can achieve this? Could you please recommend the best approach?