A method to modulate simultaneously at least two among amplitude, phase and polarization of an electromagnetic radiation having a wavelength λ, said method using an optomechanical modulator comprising a plurality of metasurfaces, where for each metasurface n (MS (n)), there is an outside reference plane n (RP (n)) in an X-Y plane and an inside reference plane (n)' (RP (n)') which is parallel to the outside reference plane n (RP (n)), with the inside reference plane (n)' (RP (n)') of metasurface n (MS (n)) facing the outside reference plane (n+1) (RP (n+1)) of metasurface (n+1) (MS (n+1)), a spacer region n (SP (n)) between the inside reference plane (n)' (RP (n')) of the metasurface n (MS (n)) and the outside reference plane (n+1) (RP (n+1)) of the metasurface n+1 MS (n+1); wherein, for each metasurface n (MS (n)), the respective spacer region n (SP (n)) has a static distance (sd (n)) between the inside reference plane (n)' (RP (n)') and the outside reference plane n+1 (RP (n+1)) of metasurface n+1 (MS (n+1)) in a Z direction which is perpendicular to the X-Y plane; and where n is an integer ranging from 1 to the total number of metasurfaces minus 1, with the total number of metasurfaces in the plurality of metasurfaces is in the range of 3 to 30; and the optomechanical modulator further comprises a mechanism to apply a force to at least one of the metasurfaces of the plurality of metasurfaces, wherein said method comprises the steps of: a. impinging a beam of the electromagnetic radiation at the outside reference plane n=1 (RP 1) of metasurface n=1 (MS 1) of the device; and b, moving at least one of the metasurfaces of the plurality of metasurfaces and changing a distance between a metasurface and an adjacent metasurface from the corresponding static distance between the metasurface and the adjacent metasurface, and wherein the movement is provided by the force. a spacer region n (SP (n)) between the inside reference plane (n)' (RP (n')) of the metasurface n (MS (n)) and the outside reference plane (n+1) (RP (n+1)) of the metasurface n+1 MS (n+1); wherein, for each metasurface n (MS (n)), the respective spacer region n (SP (n)) has a static distance (sd (n)) between the inside reference plane (n)' (RP (n)') and the outside reference plane n+1 (RP (n+1)) of metasurface n+1 (MS (n+1)) in a Z direction which is perpendicular to the X-Y plane; and where n is an integer ranging from 1 to the total number of metasurfaces minus 1, with the total number of metasurfaces in the plurality of metasurfaces is in the range of 3 to 30; and the optomechanical modulator further comprises a mechanism to apply a force to at least one of the metasurfaces of the plurality of metasurfaces, wherein said method comprises the steps of: a. impinging a beam of the electromagnetic radiation at the outside reference plane n=1 (RP 1) of metasurface n=1 (MS 1) of the device; and b, moving at least one of the metasurfaces of the plurality of metasurfaces and changing a distance between a metasurface and an adjacent metasurface from the corresponding static distance between the metasurface and the adjacent metasurface, and a. impinging a beam of the electromagnetic radiation at the outside reference plane n=1 (RP 1) of metasurface n=1 (MS 1) of the device; and b, moving at least one of the metasurfaces of the plurality of metasurfaces and changing a distance between a metasurface and an adjacent metasurface from the corresponding static distance between the metasurface and the adjacent metasurface, and wherein the movement is provided by the force.