Lily James' transformation into Pamela Anderson for her role in Hulu's "Pam & Tommy" was quite the undertaking, so much so that the actress admits she didn't recognize herself.

In a recent interview on James Corden's "Late Late Show," James revealed just what went on behind the scenes in order to resemble the actress and former Playboy model. She recalled slipping into the iconic red swimsuit Anderson donned for "Baywatch" for the first time.

"I was very nervous about that day, obviously, because it just feels so iconic. It was wild. Over the four hours, the transformation that took place it was full-on with the makeup and the different prosthetics I had on, it was weird," James said.

PAMELA ANDERSON AND TOMMY LEE: A LOOK BACK AT THEIR SEX TAPE SCANDAL

James wearing a red swimsuit similar to the one Anderson made famous in "Baywatch."

James wearing a red swimsuit similar to the one Anderson made famous in "Baywatch." (Pam & Tommy Official Trailer | Hulu)

The 32-year-old star admitted, "I sort of lost myself."

"I couldn't see myself anymore. Then I would get be in the bathing suit and then I'd be in my trailer doing my press-ups and getting the blood flowing," she said with a laugh.

The miniseries, which became available for streaming on Wednesday, explores the sex tape scandal that rocked Anderson and Tommy Lee's relationship. 

PAMELA ANDERSON SPLITS FROM HUSBAND DAN HAYHURST AFTER ONE YEAR OF MARRIAGE

Lily James as Pamela Anderson in Hulu's "Pam & Tommy."

Lily James as Pamela Anderson in Hulu's "Pam & Tommy." (Pam & Tommy Official Trailer | Hulu)

But mastering Anderson wasn't just about her appearance. James also discussed repeating the phrases Anderson used that served as "anchors" to get into character. She said her favorite was taken from an appearance on MTV's former "Cribs," where Anderson yelled, "Security! Security!"

CLICK HERE TO SIGN UP FOR THE ENTERTAINMENT NEWSLETTER

"In America, well, everyone has security, but particularly here there'd be a couple security guards on set and they'd always run over," James said.

(Pam & Tommy Official Trailer | Hulu)

James co-stars in the miniseries opposite Sebastian Stan as Lee. The sex tape scandal all started in 1994 when the rocker and the Playboy cover girl met at a New Year’s Eve party. Lee was freshly single after he and his wife of seven years, actress Heather Locklear, called it quits. Lee and Anderson crossed paths at Hollywood club Sanctuary, where they shared a drink.

"He came up, grabbed me and licked my face," Anderson recalled to Movieline magazine, as quoted by the New York Post. "I thought he was a cool, friendly, nice guy. I gave him my number."

A hopelessly smitten Lee was relentless with his non-stop calls, which put Anderson off, Rolling Stone reported. But the pair finally connected while Anderson was preparing to leave town for a photo shoot in Cancun, Mexico.

CLICK HERE TO GET THE FOX NEWS APP

The Mötley Crüe drummer flew to Cancun and tracked Anderson to the Ritz-Carlton. Within 96 hours, the pair said "I do" on the beach and tattooed each other’s names on their ring fingers. Shortly after tying the knot, the newlyweds filmed a sex tape and took explicit photos meant for their eyes only. The X-rated footage would later come back to haunt them.

Anderson has walked down the aisle five times. Her most recent marriage to bodyguard Dan Hayhurst ended after one year. As for Lee, he married internet personality Brittany Furlan in 2019.

Fox News' Stephanie Nolasco contributed to this report.