I think it should be noted that this will hide the details on all profile pages, not just your profile. I am not sure if there is a way to limit this to just the personal profile page.
Yes, you can try it for yourself, for testing you can paste those codes in desktop browsers' dev console in most browser using "f12" key, the effect will be removed after you refresh the page.