I have solved this (and a surprising number of similar problems) by pulling out the powerful camera I carry everywhere and taking a picture of the text I would otherwise need to remember.
I have an iPhone 13Pro Max and this solution is cumbersome.
When I walk back to my desk, my phone locks (due to time out or intentional habit of keeping it locked). Then I have to tap buttons to unlock phone, launch the photo app, and find the image I just took. Then I have to spend time later to delete the image.
iOS has OCR on images. I can copy and paste the password from the photo, but still not as efficient as no or simple password, since I must still deal with locking.