What is the best practice in building a design system when you have a product that’s in different platforms (web, desktop, mobile)?

How do you make sure that the design system is consistent across different platforms yet distinct with each other?