Dogs on public transit

Thinking of moving to Philly in the next few months! I have a small (14 lb) dog and won’t have a car, so I’ll be relying on public transit. In your experience, how strict are the transit employees about having dogs in travel carriers? Can I get away with putting my dog in a tote bag or does it have to be a heavy duty travel carrier?