That’s the reality for most people. Creating many things under NDA with tools watching for IP theft. So no single line of code can leave the company. I know a guy who has a portfolio, but he’s freelance web designer.
Tell this to the army of lawyers at my ex-ex-workplace. Every document I printed was reviewed by our security officer (I met him months after I left by accident and we had a chat).