Beijing on Thursday dismissed a New York Times report that alleged Chinese intelligence eavesdropped on Donald Trump's cellphone calls as "fake news" and joked the US president should switch to a Chinese phone.

The newspaper cited anonymous officials who said China and Russia had listened in to Trump's frequent phone calls with friends and allies made over his iPhone, using the information gleaned to shape interactions with the US.

When asked about the report at a regular news briefing, Chinese foreign ministry spokesperson Hua Chunying said "certain people in the US are sparing no efforts to win the best screenplay award at the Oscars".

Hua offered three recommendations to the US daily and the Trump administration.

"First The New York Times should know if they publish this type of report it provides another piece of evidence of The New York Times making fake news," she said, using one of Trump's favourite tactics to disparage unflattering articles.

"Second if they are worried about Apple phones being listened in on, they should swap them with Huawei phones," Hua said, referring to one of China's largest telecommunications firms, which has been largely blocked from the US market over national security concerns.