This article explains how to make your X (formerly Twitter) account private using the iOS app, the Android app, and your web browser. Once your account is set to private, only your followers will be able to see your account information and what you post.
How to Make Your Twitter (X) Account Private (2024)
Once you protect your posts and make them private, accounts that followed you before you went private will still be able to see your feed unless you block them.
If you use X on your iPhone or iPad, here's what you need to do:
Tap your profile icon.