remove unnecessary doms based on device layout. However, I think simply hide them is enough, since we already insert them into dom tree.