This is not possible in Teams. Joining a private channel starts with adding users to your organization, and standard channels automatically inherit all team members, a step that can't be skipped. So, guests will definitely see the data of the general channel.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.