Canvas lines showing at run time

So I wrote a script to instantiate a prefab when the scene begins. This works, but the canvas lines show up as well (the rect transform), when I would prefer that they remain invisible. How can I fix this?

turning off gizmos by clicking "gizmos in the top-right corner of the game window in the editor seems to make the lines appearing being caused by Canvas in the game window disappear. Putting this for others who are googling and coming to this page. If you’ve added canvas to your 2d game and are seeing a line in the middle of your screen disable gizmos to hide the line.

I was told that these canvas borders won’t show at run time if you actually build and run the project. I tested it, and this seems to be true. I’m not completely sure since the resolution made the window a little too small so I couldn’t see as much of the screen.