If you want to stick glass because of a repair or just for decorative purposes, you can follow the instructions below for an optimal result.
First of all, it is important to note that not every adhesive is equally suitable for the work involved. There is, for example, special silicone for the construction of aquariums, which you can use very well to professionally glue glass. However, it should be noted that this should be 100% transparent, so that the appearance is not affected afterwards.
If, on the other hand, you want to glue non-visible parts, this point may be irrelevant to you.
It should also be noted that the respective glass adhesives may contain toxic ingredients, which should be avoided especially if you use the adhesive where food is stored.