There are various methods for mounting floating shelves to the wall, and  you can choose