Can you put a beta in a glass w/plants?

If you put a beta fish in a tall glass tank with a plant at the top, won’t it suffocate? or will it be able to eat the plant?