An optical device, comprising: - a first optical transparent thermoplastic layer, - a second optical transparent thermoplastic layer, - a first optical transparent electrode adjacent to the first optical transparent thermoplastic layer, - a second optical transparent electrode adjacent to the second optical transparent thermoplastic layer, and; in between both thermoplastic layers (2,3) o a diffractive optical element adjacent to the first thermoplastic layer, wherein the diffractive optical element comprises a Fresnel lens, o a spacer in between the diffractive optical element and the second thermoplastic layer, and; o a border enclosing the diffractive optical element, thereby forming, in between both optical transparent electrodes (8, 9), a cavity; wherein at least an upper part of the border is formed from an adhesive, wherein the cavity is filled with a liquid crystalline material; wherein the adhesive is in direct contact with the cavity, wherein the spacer fixes a distance (d) between the first optical transparent thermoplastic layer and the second optical transparent thermoplastic layer, wherein the spacer is present inside the cavity, wherein the spacer and the diffractive optical element are formed using nanoimprint technology from a same layer and thus have a same material composition. - a first optical transparent thermoplastic layer, - a second optical transparent thermoplastic layer, - a first optical transparent electrode adjacent to the first optical transparent thermoplastic layer, - a second optical transparent electrode adjacent to the second optical transparent thermoplastic layer, and; in between both thermoplastic layers (2,3) o a diffractive optical element adjacent to the first thermoplastic layer, wherein the diffractive optical element comprises a Fresnel lens, o a spacer in between the diffractive optical element and the second thermoplastic layer, and; o a border enclosing the diffractive optical element, thereby forming, in between both optical transparent electrodes (8, 9), a cavity; wherein at least an upper part of the border is formed from an adhesive, wherein the cavity is filled with a liquid crystalline material; wherein the adhesive is in direct contact with the cavity, wherein the spacer fixes a distance (d) between the first optical transparent thermoplastic layer and the second optical transparent thermoplastic layer, wherein the spacer is present inside the cavity, wherein the spacer and the diffractive optical element are formed using nanoimprint technology from a same layer and thus have a same material composition. in between both thermoplastic layers (2,3) o a diffractive optical element adjacent to the first thermoplastic layer, wherein the diffractive optical element comprises a Fresnel lens, o a spacer in between the diffractive optical element and the second thermoplastic layer, and; o a border enclosing the diffractive optical element, thereby forming, in between both optical transparent electrodes (8, 9), a cavity; o a diffractive optical element adjacent to the first thermoplastic layer, wherein the diffractive optical element comprises a Fresnel lens, o a spacer in between the diffractive optical element and the second thermoplastic layer, and; o a border enclosing the diffractive optical element, thereby forming, in between both optical transparent electrodes (8, 9), a cavity; wherein at least an upper part of the border is formed from an adhesive, wherein the cavity is filled with a liquid crystalline material; wherein the adhesive is in direct contact with the cavity, wherein the spacer fixes a distance (d) between the first optical transparent thermoplastic layer and the second optical transparent thermoplastic layer, wherein the spacer is present inside the cavity, wherein the spacer and the diffractive optical element are formed using nanoimprint technology from a same layer and thus have a same material composition. wherein the cavity is filled with a liquid crystalline material; wherein the adhesive is in direct contact with the cavity, wherein the spacer fixes a distance (d) between the first optical transparent thermoplastic layer and the second optical transparent thermoplastic layer, wherein the spacer is present inside the cavity, wherein the spacer and the diffractive optical element are formed using nanoimprint technology from a same layer and thus have a same material composition.