Yes, they used to be legal. It was the cell blockers that were used in museums, symphony halls, movie theaters, and other public places. ACLU took it to court as violation of free speech, and won.
no doubt with the out-of-sight backing of the cellphone companies.