I know for a fact that it’s mandatory for people who reside in the US (citizens, visa holders or those with a green card) but does that also mean foreign visitors (like those from Mexico, Canada or EU) have to complete the census too when they are on US soil? Have you visited the US during a time a nationwide census was taking place as a foreigner (alien)? If so, do you have to answer the questions present on the census even though you do not live there?


No, President Dumbass definitely wants a census. The census explicitly needs to count all residents, but he wants to add questions about citizenship to it specifically so he (and Stephen Miller) can have a list of non-citizen residents to harass.
If they get their way, by the time the census after that one is taken, there won’t be any non-citizen residents to count anymore.
They don’t care about having a list of non-citizens to harass – they just do that based on skin color.
What they care about is having a mechanism to force an undercount in blue states, so they can get red states further disproportionate power in the House and electoral college.