How to Set proxy for a flatpak app

Is there a way I can permanently connect the flatpak app to Tor that is accessible with SOCKS5://127.0.0.1:9050 in my laptop to bypass the government censorship? Specifically, I want to be able to access WhatsApp (for example com.ktechpit.whatsie).