Step 1: Sign into Office 365 admin portal
Step 2: Sign into Exchange admin center
Step 3: On the left pane, click on Mail Flow >> Accepted Domains
Step 4: Click on the domain to which you want to change the type.
Step 5: Select the type of the domain under The Accepted Domain Is area
Step 6: Click on Save