WASHINGTON — A close adviser to Hillary Clinton agrees with Republicans that it’s time for an independent prosecutor to investigate alleged IRS targeting of conservative groups and missing e-mails.

Lanny Davis — who was a counselor to President Bill Clinton — said the IRS needs intense scrutiny from an outside investigator.

“There’s no Democrat that I know of that wouldn’t be asking a Republican administration to conduct an independent investigation” if Republicans were in charge, Davis said Friday.

Davis referenced the disclosure that IRS official Lois Lerner proposed investigating Sen. Charles Grassley (R-Iowa) after she received an invitation intended for him. The invite mentioned providing accommodations for Grassley’s wife.

“Looked like they were inappropriately offering to pay for his wife. Perhaps we should refer to Exam?” Lerner wrote to a colleague in 2012.

“It was completely almost yucky to read what she wrote,” Davis said. “If that were known by her superiors, she should have been fired.”