when I open a new document, it automatically has a gray border/grid/margin/frame/box/lines around it.
What’s your question? Those lines simply mark the area where your text will appear. You can hide them, but most experienced users would consider that as bad practice.
Formatting Marks (the same that
Ctrl+F10) is set, you will see a gray border; if
Formatting Marks is unset, you will see at the corners something similar to crop marks.
To get rid of them, choose menu
View and unselect
Tested with LibreOffice 18.104.22.168 (x86); OS: Windows 6.1.
Add Answer is reserved for solutions.
Press edit below your question if you want to add more information; also can comment an answer.
Check the mark ( → ) to the left of the answer that solves your question.