How do I unlock my device?
Only the network that locked the phone can unlock it. Contact them and ask for a network unlock. It’s usually free and only needs doing once.
Phones bought outright from a manufacturer, like Apple or Samsung, are normally unlocked already.