Mr. Miranda suggested the president was lying about the effectiveness of the federal response, and took aim at Mr. Trump for spending the weekend at his golf club in Bedminster, N.J.
While it is not unusual for celebrities to criticize Mr. Trump on Twitter, the remarks were particularly searing, and they came as a major dispute was unfolding over whether the federal government was doing enough to help Puerto Rico, an American commonwealth with 3.4 million citizens.
The governor, Ricardo A. Rosselló, has called Hurricane Maria the “greatest catastrophe” in the island’s modern history. Officials have struggled to distribute supplies and many residents are still without power, food and water.
“Puerto Ricans need supplies and resources just as badly as their fellow Americans in Texas and Florida,” Mr. Miranda wrote in a recent column for The Hollywood Reporter. “This need is magnified by their geographic isolation from the mainland.”
Mr. Miranda was far from the president’s only high-profile critic on Saturday, as actors, singers and politicians expressed their outrage and called on Mr. Trump to do more.
The comedian and television host Ellen DeGeneres tweeted at Ms. Cruz, calling her a hero.
Representative Jim Himes, Democrat of Connecticut, drew comparisons between Mr. Trump’s response to Hurricane Maria and President George W. Bush’s actions in the aftermath of Hurricane Katrina in 2005.
“As tone deaf as George Bush’s response to Katrina was,” Mr. Himes said, “I don’t think he would have attacked the mayor from the comfort of a luxury golf club.”