My phone does it.
You have to enter this code in the dialer:
*#*#4636#*#*
After which you can navigate to "Phone Information" and decide which networks to use.For example, if you select "LTE Only", then the phone will not connect to 2G/3G networks, and instead show that there is no signal.
This works for most Android phones.