Miley Cyrus paid a controversial compliment to Cody Simpson.

The two, who were first romantically linked in early October, participated in an Instagram Live Sunday, The Independent and the Daily Mail report.

In footage posted of the live video, the recently separated 26-year-old reflected on previously "not allowing anyone in."

"There are good men out there guys, don’t give up," she said. "You don’t have to be gay, there are good people with (penises) out there, you just got to find them."

"You don't have to be gay," Simpson, 22, responded laughing.

Miley Cyrus slams slut-shaming criticsafter Cody Simpson kiss: 'Get used to me dating'

Who is Cody Simpson? A look at the man who might be Miley Cyrus' new flame

"I know," Cyrus said. "I always thought I had to be gay 'cause I just thought, like, all guys were evil, but it’s not true. There are good people out there that just happen to have (penises). I’ve only ever met one... and he’s on this Live."

Cyrus took to Twitter Monday to clarify her comments in a NSFW tweet. "I was talking (expletive) about (guys), but let me be clear, YOU don't CHOOSE your sexuality. You are born as you are. It has always been my priority to protect the LGBTQ community I am a part of," she wrote, adding a rainbow emoji.

Cyrus, founder of the Happy Hippie Foundation, a nonprofit dedicated to providing resources to LGBT youth, homeless citizens and other vulnerable communities, came out as pansexual in 2016.

She said in Variety's Power of Women L.A. issue that as far as her gender, she feels "very neutral."

"Once I understood my gender more, which was unassigned, then I understood my sexuality more," she said. "I was like, 'Oh – that’s why I don’t feel straight and I don’t feel gay. It’s because I’m not.' "

Some on Twitter expressed their dissatisfaction with the singer's comments from the weekend.

One critic slammed her remarks as "a stupid message, from a stupid person, to idiots who think they 'have to' become gay because a gender disappoints them. That's a stupid narrative encouraging the illusion that it's a choice and a flimsy button."

Another user made use of the eye roll emoji in their post: "Miley Cyrus saying 'you don't have to be gay.' “

"But being gay isn't a choice, sis?" a person shared. "so good for you for choosing not to be gay..."

USA TODAY has reached out to reps for Cyrus for comment.

'Bratty millennial' Miley Cyrus goes to Arizona to get over a tough month

Liam Hemsworth seen with 'Dynasty' actress Maddison Brown post-Miley Cyrus split, reports say

Contributing: Jaleesa M. Jones