In the US there's laws in some, but not all states, preventing you from campaigning for any candidate close to a polling place. This includes signs, clothing, and verbally promoting a party or candidate.
It doesn't matter if you're doing it "officially" or just as a random citizen standing in line.