How to remove lines around the text box? | Word 365

Select text box. Go to ribbon under Shape Format. In the Share Styles section click on Shape Outline. Choose No Outline

Second Option is to select box. Under Shape Format and Shape Styles click on the Format Shape ( Or right click on the text box line and choose Format Shape)

On the right Format Shape side bar opens. Choose Line and then No Line