It was Ivanka’s nightmare.

Sipping vodka under chandeliers in a cool private club on the Lower East Side, the New York elite — the very ones Ivanka’s father scorned at a rally a few days ago for looking down on him even though he has “a much better apartment” and is “smarter” and “richer” — were shaking their well-coiffed heads over the fall of the first daughter.

Why had she stayed mute for so many days about the torment her father was inflicting on thousands of immigrant children? What will happen to her if Michael Cohen flips? Did she know she was as out as an outcast Edith Wharton character, doomed never to return to her privileged perch as a Manhattan society darling?

“It’s really easy for someone whose sole job in the White House is women and children to issue a statement — even Melania did it,” Emily Jane Fox said in an interview after her new book, “Born Trump,” was celebrated by her editors at Vanity Fair on Tuesday night at the Ludlow House.

“It just shows how fake Ivanka is,” Fox continued. “She’s crafted this whole image of herself that’s not actually her. And the real her is cooler, slightly more interesting, funnier. She curses like a sailor. She partied a lot when she was younger. She flashed a hot dog vendor when she was in eighth grade. She chain-smoked. Which is so opposite of the image she put out there.