UPDATE: I'm an idiot and just realized that I based this off a remix from Maker World that integrates the stylus into the enclosure. (Apparently Prusa will not let you link to Maker World. Very cool. Search “remix xTouch enclosure added slot for stylus for P1P and P1S” on Maker World to find it I guess. I do not know if this will work with the version here on printables that I attached it to. I do endorse this remix though.
I didn't have any countersunk M3 bolts so I made this for my hex cap ones. It takes 6 M3x10 screws instead of the M3x12. I also realized as I was hitting the button to post a remix that someone else has already done this. Whoops! Should probably have looked before I leapt. But I figure I might as well post my own since I took the time to make it.
Other remix that does the same thing in case mine is worse (or doesn't work for this version): https://www.printables.com/model/621274-xtouch-enclosure-by-tt-the-rear-mod-for-hex-socket
The author remixed this model.
I didn't have any countersunk M3 bolts so I made this for my hex cap ones. It takes 6 M3x10 screws instead of the M3x12.