There are certainly important similarities between these two groups. Among the most important of these are:
Both were from “suspect” ethnic groups. In the late 1800s, immigrants were coming from Eastern and Southern Europe. These were places that had not been a source of many migrants in the past and people were suspicious of the newcomers. Today, immigrants are mainly Hispanic, which has not previously been a large group in this country.
Both tend to live in enclaves. In both cases, the immigrants tended to live together in neighborhoods where they could speak their native languages and support one another.
There have been negative reactions to both. In both cases, “native” Americans have feared that the immigrants would fail to assimilate and would change American culture for the worse.