A few months ago, the boxy, teal truck parked outside a McDonald’s in this Inland Empire city might have drawn hundreds of people willing to stand in line for hours under the scorching sun.

The truck is San Bernardino County’s mobile vaccine unit, which brings covid-19 vaccines directly...