Periscopes are used in order to see the objects that are not in direct line of sight. Its working is based on the laws of reflection. It consists of a set of parallel plane mirrors as shown in the diagram.
result
Total internal reflecting prism as a plane mirror
Image formed by total reflecting prism is brighter than a plane mirror because all of the incident light is reflected. It is used to deviate light by 90o in periscope and 180o in binoculars.