100 years ago tractors and machinery were replacing farm workers etc...
Obviously AI is a step up since you at least needed humans to operate many machines.
Some kind of UBI might be inevitable, higher taxes for large/most profitable companies might fuel it. But that's my idealistic view of it.