I think when you connect via wifi your device is given an internal IP and the external IP reflects the wifi you're using. When you use data your carrier gives you an external IP to use. You might've got an IP that is blocked by cloudflare or the bbs for various reasons.
You would also be blocked by the site if the wifi you're using is blocked for whatever reason.