Everything feels fast on a local network, which hides how an app behaves on a bad mobile connection. The netem queue discipline in tc lets the kernel slow down your own traffic on purpose.
Add a delay to everything that leaves an interface:
tc qdisc add dev eth0 root netem delay 100ms
From then on, every packet that goes out of eth0 waits 100 ms. You can make it worse while it runs, with jitter and a bit of packet loss on top:
tc qdisc change dev eth0 root netem delay 200ms 20ms loss 1%
tc qdisc show dev eth0
The second number after delay is the jitter, so packets now take somewhere around 180 to 220 ms. tc qdisc show tells you what is active, which is worth checking before you start blaming the app.
When you are done, remove it again:
tc qdisc del dev eth0 root
netem only touches outgoing traffic on the interface you name. If you are logged in over SSH on that same interface, your own session gets slow too, and a high loss value can make it hard to type the del command. I would test on a second interface, a VM, or the loopback device lo when the client and server run on the same machine. The setting is not permanent; a reboot also clears it.
Further reading: tc-netem(8) manual page, tc(8) manual page