Haven't done this recently but the last time I set a cookie with a specific value on an authenticated server side URL only accessible to testers. Inside the actual app implementing the feature I'd check for that cookie/value and if present serve the content implementing the feature. If you didn't present the cookie/value combo you got served the production template w/o the new feature. This was for a client who didn't have a staging/test environment so everything had to regrettably be done "live".
It's not bulletproof, anyone MITMing the connection could grab the cookie and access the feature, a tester could share the private URL & userid/password, etc.