You cannot change your past. If you have a criminal record or an eviction history, a background check will likely expose it. One tip is to make sure any red flags in your past do not come as surprises to your potential employer or landlord. You may get points for honesty plus the chance to explain the context of an adverse incident.
Additionally, check your state’s requirement for expunging criminal convictions or records. Formally expunging your record can make it so that background check services cannot find a record to flag.