You have to make it impossible for them to exist. Rentiers are the lowest form of business, and incentives need to make it difficult for them to prosper too much.
These issues are why policy was oriented around individual home ownership for decades.
There's an argument that landlording gets entirely too favorable treatment from the tax code compared to any other type of business or investment. Seriously proposing eliminating property rentals is weapons-grade stupid.
Orienting policy around individual home ownership just ends up eventually with more people’s voting interests aligned with landowners, and is part of the reason why increasing property values and NIMBYism is so entrenched in American government structures