You can do this in your phone's settings. The exact steps depend on your device type:
Apple/iOS: https://support.apple.com/en-us/109317
Samsung/Android: https://www.samsung.com/us/smartphones/dual-sim-psim-esim-phones/
Google Pixel/Android: https://support.google.com/pixelphone/answer/9449293?hl=en