If by “only 1’s” you mean generating only sample images representing the digit 1, then it is (almost) impossible to do it perfectly if you trained your network on the whole MNIST dataset.
What you can do if you want to use a VAE to generate samples of 1’s and 2’s separately is to train one VAE for each digit.