Essentially when things in your peripheral vision are in focus, aka things close to your eye like screens, your eye thinks it’s over focusing, and it grows longer to defocus, causing myopia. Preventing focus in peripheral vision removes this signal. The eye is very dumb, it grows on response to light focus. The brain is not involved.